home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / sysadm / modifyPermissionsAndOwnership.z / modifyPermissionsAndOwnership
Encoding:
Text File  |  2002-10-03  |  5.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4. mmmmooooddddiiiiffffyyyyPPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp((((1111MMMM))))            mmmmooooddddiiiiffffyyyyPPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      modifyPermissionsAndOwnership - modify permissions and ownership of files
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////ssssyyyyssssaaaaddddmmmm////pppprrrriiiivvvvbbbbiiiinnnn////mmmmooooddddiiiiffffyyyyPPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp [----uuuu <_p_s_t_r_i_n_g>] [----pppp
  13.      <_p_s_t_r_i_n_g>] [----dddd <_p_s_t_r_i_n_g>] [----OOOO <_u_i_d | _u_n_a_m_e>] [----GGGG <_g_i_d | _g_n_a_m_e>] [----DDDD]
  14.      _f_i_l_e_1 _f_i_l_e_2 ... _f_i_l_e_N, [<_n_e_x_t-_s_e_t-_o_f-_m_o_d_i_f_i_c_a_t_i_o_n_s-_a_n_d-_f_i_l_e_s>,] ...
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      mmmmooooddddiiiiffffyyyyPPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp modifies the permissions and/or ownership
  18.      of files and directories using cccchhhhoooowwwwnnnn(1) and cccchhhhmmmmoooodddd(1).
  19.  
  20.      The mmmmooooddddiiiiffffyyyyPPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp command requires at least one set of
  21.      modifications and one set of files.  These sets must be non-empty.  Each
  22.      pair of modifications and the files they should be applied to should be
  23.      separated by commas.
  24.  
  25.      The modifications can be specified as follows (at least one is required):
  26.  
  27.      ----uuuu <_p_s_t_r_i_n_g>
  28.           Specifies the changes to make to the user permissions.
  29.  
  30.      ----pppp <_p_s_t_r_i_n_g>
  31.           Specifies the changes to make to the group permissions.
  32.  
  33.      ----dddd <_p_s_t_r_i_n_g>
  34.           Specifies the changes to make to the world/other permissions.
  35.  
  36.      <_p_s_t_r_i_n_g> has the following format:
  37.           [r<+|->][w<+|->][x<+|->] where "r+w-" indicates that read permission
  38.           should be added, write permissions should be taken away, and execute
  39.           permission should remain unchanged
  40.  
  41.      ----OOOO <_u_i_d | _u_n_a_m_e>
  42.           Specifies the new owner ID or name.
  43.  
  44.      ----gggg <_g_i_d | _g_n_a_m_e>
  45.           Specifies the new group ID or name.
  46.  
  47.      ----DDDD   Specifies that the command should be applied recursively to
  48.           directories (ie. descend into directories and repeat command on
  49.           their contents). Note that modifications specified on execute
  50.           permissions will only be applied to the contained subdirectories and
  51.           not the contained files.
  52.  
  53. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  54.      To make bob the owner of all .h and .c++ files and cindy the owner of all
  55.      .o files:
  56.  
  57.      mmmmooooddddiiiiffffyyyyFFFFiiiilllleeeePPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp ----OOOO bbbboooobbbb ****....hhhh ****....cccc++++++++,,,, ----OOOO cccciiiinnnnddddyyyy ****....oooo
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. mmmmooooddddiiiiffffyyyyPPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp((((1111MMMM))))            mmmmooooddddiiiiffffyyyyPPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      To give the group read and write permissions for file1.dat, file2.dat,
  75.      and file3.dat and give world read permissions just for file3.dat:
  76.  
  77.      mmmmooooddddiiiiffffyyyyFFFFiiiilllleeeePPPPeeeerrrrmmmmiiiissssssssiiiioooonnnnssssAAAAnnnnddddOOOOwwwwnnnneeeerrrrsssshhhhiiiipppp ----pppp rrrr++++wwww++++ ffffiiiilllleeee1111....ddddaaaatttt ffffiiiilllleeee2222....ddddaaaatttt ffffiiiilllleeee3333....ddddaaaatttt,,,,
  78.      ----dddd rrrr++++ ffffiiiilllleeee3333....ddddaaaatttt
  79.  
  80.  
  81. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  82.      cccchhhhmmmmoooodddd((((1111)))), cccchhhhoooowwwwnnnn((((1111)))), cccchhhhggggrrrrpppp((((1111)))), ppppeeeerrrrmmmmiiiissssssssiiiioooonnnnssss((((1111mmmm)))), ssssyyyyssssmmmmggggrrrr((((1111mmmm))))
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.